Config

constructor(identifier: Identifier, subfolder: String = "", folder: String = identifier.namespace, name: String = identifier.path)

Parameters

identifier

Identifier - The identifier of this config. Common groups of namespace will be the first "layer" of the Config GUI where applicable (all configs of the same namespace in one group), so it's recommended to use one unified namespace (modid, generally)

name

String, optional - the name of the config, this will be the file name (sans file extension). By default, this is defined from the path of the config identifier. NOTE: Do not add a file type to this name. That is done automatically where needed

folder

String, optional - the subfolder inside the root config folder the file will be saved in. By default, this is defined from the namespace of the config identifier. Can be "", which will put the file in the root config folder.

subfolder

String, optional - puts the config into a sub-subfolder inside the subfolder specified in folder. Does not affect ID or GUI layout